package com.ldc.common.utils;

/**
 * 功能描述
 *
 * @author liudi
 * @since 2023/7/29
 */
public class OsUtils {
    private static final String OS_NAME = "os.name";

    public static boolean isLinux() {
        return System.getProperty(OS_NAME).toLowerCase().contains("linux");
    }

    public static boolean isWindows() {
        return System.getProperty(OS_NAME).toLowerCase().contains("windows");
    }
}
